package com.xesj.util;

import org.springframework.context.ApplicationContext;
/**
 * 
* @ClassName: Const 
* @Description: 常亮定义类
* @author lee 
* @date 2016年4月11日 下午2:33:03 
*
 */
public class Const {
	public static final String JCATPCHA_CODE = "jcatpchaCode";//验证码
	public static final String SESSION_USER = "sessionUser";			//session用的用户
	public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String sSESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String SESSION_menuList = "menuList";			//当前菜单
	public static final String SESSION_allmenuList = "allmenuList";		//全部菜单
	public static final String SESSION_USERROL = "USERROL";				//用户对象
	public static final String SESSION_USERNAME = "USERNAME";			//用户名
	public static final String SYSNAME = "admin/config/SYSNAME.txt";	//系统名称路径
	public static final String PAGE	= "admin/config/PAGE.txt";			//分页条数配置路径
	public static final String TTFS_PATH = "static/ttfs/";				//字体路径
	public static final String NO_INTERCEPTOR_PATH = ".*/((login)|(logout)|(code)|(static)|(index)).*";	//不对匹配该值的访问路径拦截（正则）
	// 禁止访问的连接结尾
	//public static final String NO_REQUEST_PATH = ".*/((aspx)|(asp)|(php)|(exe)|(jsp)|(pl)|(py)|(groovy)|(sh)|(rb)|(dll)|(bat)|(bin)|(dat)|(bas)|(c)|(cmd)|(com)|(cpp)|(c)|(jar)|(class)|(lnk))*";
	public static ApplicationContext WEB_APP_CONTEXT = null; 			//该值会在web容器启动时由WebAppContextListener初始化
	public static final String LOGIN = "/index.jsp";				    //登录地址
	public static final String SESSION_ID = "WAPSESSIONID";				// SESSION_ID
	
	
	/**
	 * 定义缓存的KEY
	 */
	// 商品分类
	public static final String CATEGORYTREE = "categoryTree";
	// 数据字典
	public static final String DICTIONARIES = "dictionaries";
	// 首页数据
	public static final String HOMEPAGE = "homepage";
	// 商城变量Map
	public static final String WTLCONFIG = "wtlconfig";
	// 地区(省份)
	public static final String AREA = "area";
	// 资源数据
	public static final String PERMISSION = "permission";
	// 角色数据
	public static final String ROLE = "role";
	// 角色拥有的权限（List<String>），用于做界面权限验证
	public static final String ROLE_PERMISSION = "role_permission";
	// 角色拥有的所有权限
	public static final String PERMISSIONBYROLE = "permissionByRole";
	// 所有菜单
	public static final String ALLPERMISSION = "allPermission";
	// 获取所有渠道信息
	public static final String QUDAOINFO = "qudaoInfo";
	// 地区的json数据
	public static final String AREA_JSON = "area_json";
	// 资源列表的json数据
	public static final String PERMISSION_JSON = "permission_json";
	// 某个角色拥有的权限信息
	public static final String ALLPERMISSION_JSON = "allpermission_json";
	// 验证码缓存的Key
	public static final String JCAPTCHA_SYS = "jcaptcha_sys";
	
	/** 
	* @Fields EHCACHE_NAMESPACE : 缓存命名空间
	*/ 
	public static final String EHCACHE_NAMESPACE  = "ehcache_namespace";
	
}
